﻿<%@ Page Title="Library" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="AnimeLibrary.list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="Search" class="float-right">
        <table>
            <tr>
                <td class="td_label">Search:</td>
                <td colspan="2"><asp:TextBox ID="txtSearch" runat="server" class="entry_fields" OnTextChanged="txtSearch_TextChanged" /></td>
            </tr>
        </table>
    </div>
    <br />
    <br />
    <br />
    <asp:GridView ID="dgvAnimeLibraryList" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="3" ForeColor="Black" GridLines="Vertical" OnPageIndexChanging="dgvAnimeLibraryList_PageIndexChanging" OnSorting="dgvAnimeLibraryList_Sorting" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" Height="95%" HorizontalAlign="Center" Width="95%" PageSize="5" EnableTheming="True" ShowFooter="True" ShowHeaderWhenEmpty="True">
        <AlternatingRowStyle  BackColor="#CCCCCC" />
        <Columns>
            <asp:TemplateField>
              <ItemTemplate>
                <asp:HyperLink runat="server" NavigateUrl='<%# Eval("ID", "details.aspx?item={0}") %>'>
                  <asp:Image runat="server" ImageUrl='<%# Eval("ThumbnailLocation") %>' />
                </asp:HyperLink>
              </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Author" HeaderText="Author" SortExpression="Author" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="TotalEpisodes" HeaderText="No Of Episodes" SortExpression="TotalEpisodes" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="details.aspx?item={0}" Text="More Details...">
            <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <PagerSettings Position="TopAndBottom" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />
    </asp:GridView>
</asp:Content>